using System;
using UnityEngine;

namespace GGPhysics
{
	[Serializable]
	public class LineShape : Shape
	{
		public Vector3 point1;

		public Vector3 point2;

		public override CollisionDetection.AABBBounds GetBounds(PhysicsBody.Transform currentTransform, PhysicsBody.Transform nextTransform)
		{
			return new CollisionDetection.AABBBounds(currentTransform.TransformLocalToWorld(point1), currentTransform.TransformLocalToWorld(point2));
		}
	}
}
